/**
 * 功能描述
 */

define(function (require, exports, module) {
	var Form = require("form");
	var store = require("store");
	var activeUser = store.get("user");
	
    var instance = {
        initComponent: function (params, widget) {
        	var form = new Form({
				parentNode : ".J-middleform",
				show : false,
				model : {
					id : "form",
					defaultButton : false,
					layout : "3_1",
					items : [{
						name : "waterElectric",
						label : "房价是否含水电费",
						type: "text",
						readonly : true,
						"break": true
					},{
						name : "checkInElectric",
						type : "text",
						label : "入住电表(度)",
						validate : [ "required" ]
					},{
						name : "checkOutElectric",
						type : "text",
						label : "退住电表(度)",
						validate : [ "required" ]
					},{
						name : "electricPrice",
						type : "text",
						label : "电价(元/度)",
						readonly : true,
					},{
						name : "checkInColdWater",
						type : "text",
						label : "入住冷水(立方)",
						validate : [ "required" ]
					},{
						name : "checkOutColdWater",
						type : "text",
						label : "退住冷水(立方)",
						validate : [ "required" ]
					},{
						name : "waterPrice",
						type : "text",
						label : "冷水价(元/立方)",
						readonly : true,
					},{
						name : "checkInHotWater",
						type : "text",
						label : "入住热水(立方)",
						validate : [ "required" ]
					},{
						name : "checkOutHotWater",
						type : "text",
						label : "退住热水(立方)",
						validate : [ "required" ]
					},{
						name : "hotWaterPrice",
						type : "text",
						label : "热水价(元/立方)",
						readonly : true,
					}]
				}
			});
			widget.set("waterelectricform",form);
        }
    };
    module.exports = instance;
});
